package com.wiscamp.ninechapters.panels.application.command;

import cube.ddd.application.command.CommandObject;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 用户组表
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class BindUnbindRolePermissionCommand extends CommandObject {

    @NotNull
    @Min(value = 1, message = "编号最小值不能低于1。")
    private long roleId = 0;

    @NotNull
    @Min(value = 1, message = "编号最小值不能低于1。")
    private long permissionId = 0;
}
